package homeword.cake;

public class Client {
    /**
     * 主
     */

    public static void main(String[] args) {
        Repository repository = new Repository();

        Thread a = new Thread(new Consumer(repository), "A");
        Thread b = new Thread(new Consumer(repository), "B");
        Thread a1 = new Thread(new Cook(repository), "A");
        Thread b1 = new Thread(new Cook(repository), "B");


        a.start();
        b.start();
        a1.start();
        b1.start();
    }
}
